package com.zbec.mdrs.util;

import java.util.ResourceBundle;

/**
 * Created by fxl on 2015/11/8.
 */
public class ResourceUtils {

    private static ResourceBundle bundle = ResourceBundle.getBundle("i18n.messages");

    public static String getLocaleString(String field){
        String value="";
        try
        {
            value=new String(bundle.getString(field).getBytes("ISO-8859-1"),"UTF-8");
        }catch(Exception e)
        {
           System.out.print(e.getMessage()+" key:"+field);
        }
        return value;
    }

}
